package org.budo.tencent;

import org.budo.tencent.api.TencentOauthApi;
import org.budo.tencent.api.TencentUserApi;

/**
 * @author lmw
 */
public class Tencent {
    public static TencentOauthApi oauthApi(String appKey, String appSecret, String redirectUri) {
        TencentOauthApi tencentOauthApi = new TencentOauthApi();
        tencentOauthApi.setAppKey(appKey);
        tencentOauthApi.setAppSecret(appSecret);
        tencentOauthApi.setRedirectUri(redirectUri);
        return tencentOauthApi;
    }

    public static TencentOauthApi oauthApi() {
        return new TencentOauthApi();
    }

    public static TencentUserApi userApi(String appKey) {
        TencentUserApi tencentUserApi = new TencentUserApi();
        tencentUserApi.setAppKey(appKey);
        return tencentUserApi;
    }
}